package com.wisedu.wec.bank.web;

import com.wisedu.wec.bank.dal.sqlDao.BankDao;
import org.hibernate.validator.constraints.pl.REGON;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: wec-mall-bank-apps
 * @description:
 * @author: Liuzidan
 * @create: 2021-01-09 21:18
 **/
@RestController
public class BankController {
    @Autowired
    BankDao bankDao;

    @RequestMapping("/get")
    public int getinfo(){
      int i=  bankDao.balanceDecr("1",100.0);
        return i;

    }


}
